package com.ssm.service;

import com.ssm.dao.RepairMapper;
import com.ssm.pojo.Repair;

import java.util.List;

public class RepairServiceImpl implements RepairService{
    private RepairMapper repairMapper;


    public void setRepairMapper(RepairMapper repairMapper) {
        this.repairMapper = repairMapper;
    }

    @Override
    public int addRepair(Repair repair) {
        return repairMapper.addRepair(repair);
    }

    @Override
    public List queryRepair(String rDate) {
        return repairMapper.queryRepair(rDate);
    }

    @Override
    public int deleteRepair(String rDate) {
        return repairMapper.deleteRepair(rDate);
    }
}
